package com.cangshi.dao;

import com.cangshi.entity.Group;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GroupMapper {
    int deleteByPrimaryKey(Integer groupId);

    int insert(Group record);

    int insertSelective(Group record);

    Group selectByPrimaryKey(Integer groupId);

    int updateByPrimaryKeySelective(Group record);

    int updateByPrimaryKey(Group record);

    int selectLastId();

    List<Group> selectByLimit(@Param("line") Integer line, @Param("next") Integer next, @Param("goodsTypeId") Integer goodsTypeId, @Param("keyWord") String keyWord);

    List<Group> selectSimpleByGroup(@Param("group") Group group, @Param("line") Integer line, @Param("next") Integer next);

    Integer selectCountByGroup(@Param("group") Group group, @Param("keyWord") String keyWord);
}